package com.agrm.rabc.mapper;

import com.agrm.model.rabc.dto.Menu;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MenuDao extends BaseMapper<Menu> {
    default List<Menu> findAll(Menu menu) {
        LambdaQueryWrapper<Menu> lambdaQueryWrapper = Wrappers.<Menu>lambdaQuery(menu);
        return this.selectList(lambdaQueryWrapper);
    }
}
